package com.woniuxy.core.service;

import com.woniuxy.entity.AllShop;
import com.woniuxy.entity.DTO.PageResponseDTO;
import com.woniuxy.entity.DTO.ShopAndUserDTO;

import java.util.List;

/**
 * @Author hq
 * @Date 2025/7/13$ 15:55$
 * @Description TODO
 * @Params $
 * @Return $
 **/
public interface ShopService {
    /**
     * 创建店铺
     * @param shop
     */
    void createShop(AllShop shop);

    PageResponseDTO<ShopAndUserDTO> getAllShops(Integer pageNum, Integer pageSize, String  title, Integer status);

    void deleteShop(Integer id);

    void offlineShop(Integer id, Integer status);

    AllShop getShopById(Integer id);
    /**
     * 根据用户id查询店铺
     * @param userId
     * @return
     */
    List<AllShop> getShopByUserId(Integer userId);
}
